<?php

namespace app\index\controller;

use think\Controller;
// use app\index\model\User;

class Urltest extends Controller
{
    public function index()
    {

        // echo THINK_PATH."<br>";
        // echo DS;
        $result = 1;
        if($result){
            //设置成功后跳转页面的地址，默认的返回页面是$_SERVER['HTTP_REFERER']
            $this->success('新增成功', 'User/list');
        } else {
            //错误页面的默认跳转页面是返回前一页，通常不需要设置
            $this->error('新增失败');
        }
    }

    public function index2(){
    	return view('index','url/list');
    }

}